package com.ljz.mapper;

import com.ljz.common.dao.MyBaseMapper;
import com.ljz.entity.Spu;
import com.ljz.query.SpuQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface SpuMapper extends MyBaseMapper<Spu> {

    List<Map> querySpuByPage(SpuQuery spuQuery);

    /**
     * 根据id查找商品所有信息
     * @param id
     * @return
     */
    Map querySpuById(Long id);
}
